package com.hangzhou.xyj.net.request;

import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.hangzhou.xyj.net.request.base.BaseRequest;
import com.hangzhou.xyj.utils.constants.API;

/**
 * Created by yaohuix on 2016/3/3  17:33
 * <p/>
 * 说明：社区-关注动态 请求
 */
public class GetCommunityFocusDynamicReq extends BaseRequest {

    public GetCommunityFocusDynamicReq(int userId, int currentPage, int pageSize) {
        JsonObject jsonObject = new JsonObject();
        jsonObject.addProperty("userId", userId);
        jsonObject.addProperty("currentPage", currentPage);
        jsonObject.addProperty("pageSize", pageSize);
        String jsonStr = new Gson().toJson(jsonObject);
        add("data", jsonStr);
    }

    @Override
    public String getUrl() {
        return API.MY_FOLLOW_DYNAMIC;
    }
}
